package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.UserToHostLog;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-11-01
 */
public interface UserToHostLogMapper extends BaseMapper<UserToHostLog> {
    /**
     * 获取主播好评或差评的数量
     * @Author Shane
     * @Date 2020/4/14 17:02
     * @param hostUserId
     * @param type  类型，0-好评  1-差评
     * @return
     */
    int getUserEvaluateNum(@Param("hostUserId") Integer hostUserId, @Param("type") Integer type);
}